<template>
  <el-card style="margin: 10px">
    <el-table
      :data="salaryData"
      stripe
      class="table">
      <el-table-column
        prop="sno"
        label="工号">
      </el-table-column>
      <el-table-column
        prop="date"
        label="月份">
      </el-table-column>
      <el-table-column
        prop="salary"
        label="工资">
      </el-table-column>
    </el-table>
  </el-card>
</template>

<script>
  export default {
    name: "SalaryTable",
    props:{
      salaryData:[],
    }
  }
</script>

<style scoped>
  .table{
    width:100%;
    height:770px;
    overflow-y: scroll;
  }
</style>
